package com.trsvax.gwthello.components.gwtui;

import java.util.List;

import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.BeginRender;
import org.apache.tapestry5.annotations.SupportsInformalParameters;
import org.apache.tapestry5.ioc.annotations.Inject;

@SupportsInformalParameters
public class LayoutPanel {

	@Inject
	private ComponentResources componentResources;

	@BeginRender
	void begin(MarkupWriter writer) {
		List<String> names = componentResources.getInformalParameterNames();

		for (String name : names) {
			writer.element("div");
			writer.write(name.toString());
			writer.end();
		}

	}
}
